package com.atguigu.service;

import com.atguigu.pojo.NginxServiceConfigProxy;
import com.atguigu.pojo.Page;
import com.atguigu.pojo.Server;

import java.util.List;

public interface NginxServiceConfigProxyService {
    public void addNginxServiceConfigProxy(NginxServiceConfigProxy nginxServiceConfigProxy);
    public void updateNginxServiceConfigProxy(NginxServiceConfigProxy nginxServiceConfigProxy);
    public void deleteNginxServiceConfigProxyById(String id);
    public NginxServiceConfigProxy queryNginxServiceConfigProxyById(String id);

    public NginxServiceConfigProxy queryNginxServiceConfigProxyByTargetNodeId(String targetNodeId);
    public List<NginxServiceConfigProxy> queryNginxServiceConfigProxysByTargetNodeId(String targetNodeId);
    public List<NginxServiceConfigProxy> queryNginxServiceConfigProxys();
    public List<NginxServiceConfigProxy> queryNginxServiceConfigProxiesByServiceId(String serviceId);
    public List<NginxServiceConfigProxy> queryNginxServiceConfigProxiesByFrontPort(String frontPort);
    public List<NginxServiceConfigProxy> queryNginxServiceConfigProxiesByServiceIdFrontDomainPort(String serviceId,String frontDomain,String frontPort);
    public Page page(Integer pageNo, Integer pageSize);
}
